/**
 *  *2010-6-6 下午05:21:04  add 
 */
package com.base.myproject.client.tools;

import java.util.HashMap;

import com.base.myproject.client.busi.BaseStore;
import com.base.myproject.client.busi.BO.BusiObject;

/**
 * 此类负责常用的store的集合
 * @author Administrator
 *2010-6-6
 * javazgw@gmail.com
 */
public class BaseStoreList {
	HashMap<String  ,BaseStoreCommand> hm = new HashMap<String ,BaseStoreCommand>();
	static BaseStoreList bsl = null;
	private BaseStoreList()
	{
		
	}

	public static BaseStoreList getInstance()
	{
		if(bsl==null)
			bsl = new BaseStoreList();
		return bsl;
	}
	/**
	 * 装入store
	 * @param name
	 * @param bsc
	 */
	public void put(String name ,BaseStoreCommand bsc)
	{
		hm.put(name, bsc);
	}
	/**
	 * 获得store
	 * @param name
	 * @return
	 */
	public BaseStoreCommand get(String name)
	{
		return hm.get(name);
	}
	/**
	 * 获得store
	 * @param name
	 * @return
	 */
	public BaseStore<BusiObject> getStore(String name)
	{
		return hm.get(name).getStore();
	}
}
